﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true" CodeFile="RegisterVillage.aspx.cs" Inherits="User_Admin_RegisterVillage" %>

<%@ Register src="../../Controls/ContentHolder/Holder1.ascx" tagname="Holder1" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 216px;
        }
        .style5
        {
            width: 207px;
        }
        .style6
        {
            width: 169px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="font-family:Tahoma;font-size:11;" align="center">
 
    <uc1:Holder1 ID="Holder11" runat="server" Title="ثبت روستا">
<ContentTemplate>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>

    <table class="MainObject" dir="ltr">
        <tr>
            <td align="left" class="style2">
                &nbsp;</td>
            <td align="left" class="style6">
                <asp:DropDownList ID="DropDownListCity" runat="server" AutoPostBack="True" 
                    OnSelectedIndexChanged="DropDownListCity_SelectedIndexChanged" Width="140">
                </asp:DropDownList>
            </td>
            <td class="style5" dir="rtl">
                <asp:Label ID="Label3" runat="server" Text="شهرستان"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style2">
                &nbsp;</td>
            <td align="left" class="style6">
                <asp:DropDownList ID="DropDownListBakhsh" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownListBakhsh_SelectedIndexChanged" Width="140">
                </asp:DropDownList>
            </td>
            <td class="style5">
                <asp:Label ID="Label5" runat="server" Text="بخش"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style2">
                &nbsp;</td>
            <td align="left" class="style6">
                <asp:DropDownList ID="DropDownListDehestan" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownListDehestan_SelectedIndexChanged" Width="140">
                </asp:DropDownList>
            </td>
            <td class="style5">
                دهستان</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TxtVillageCode" CssClass="MainObject" 
                    ErrorMessage="کد آبادی وارد نشده است."></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
                <asp:TextBox ID="TxtVillageCode" runat="server"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="Label1" runat="server" Text="کد آبادی"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TxtVillageName" CssClass="MainObject" 
                    ErrorMessage="نام روستا وارد نشده است."></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
                <asp:TextBox ID="TxtVillageName" runat="server"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="Label2" runat="server" Text="نام روستا"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="TxtKhanevar" CssClass="MainObject" 
                    ErrorMessage="تعداد خانوار وارد نشده است."></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
                <asp:TextBox ID="TxtKhanevar" runat="server"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="Label6" runat="server" Text="خانوار"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="TxtPopulation" CssClass="MainObject" 
                    ErrorMessage="جمعیت روستا وارد نشده است."></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
                <asp:TextBox ID="TxtPopulation" runat="server"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="Label7" runat="server" Text="جمعیت"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="LblStatus" runat="server"></asp:Label>
            </td>
            <td class="style6">
                <asp:Button ID="BtnCancel" runat="server" Text="انصراف" Width="70px" 
                    CssClass="MainObject" onclick="BtnCancel_Click" CausesValidation="False" />
                <asp:Button ID="BtnRegister" runat="server" CssClass="MainObject" Text="ثبت" 
                    Width="70px" onclick="BtnRegister_Click" />
            </td>
            <td class="style5">
                &nbsp;</td>
        </tr>
    </table>
       
    </div>
            </ContentTemplate>
        </asp:UpdatePanel> 
         </ContentTemplate>
    </uc1:Holder1>
    </div>
</asp:Content>

